<?xml version="1.0" encoding="utf-8"?>
<div xmlns="http://www.w3.org/1999/xhtml" component="$UI/system/components/justep/window/window" design="device:m;" xid="window" class="window">  
  <div component="$UI/system/components/justep/model/model" xid="model" style="top:404px;left:635px;height:auto;"> 
  <div component="$UI/system/components/justep/data/data" autoLoad="false" xid="cartShopData" idColumn="id" onCustomRefresh="cartShopDataCustomRefresh"><column label="ID" name="id" type="String" xid="xid1"></column>
  <column label="商铺" name="fShopName" type="String" xid="xid2"></column>
  <column label="是否选中" name="fCheck" type="String" xid="xid14"></column>
  <column label="合计金额" name="fSumMoney" type="Decimal" xid="xid17"></column>
  <column label="合计数量" name="fSumNum" type="Decimal" xid="xid18"></column>
  <rule xid="rule2">
   <col name="fSumMoney" xid="ruleCol2">
    <calculate xid="calculate2">
     <expr xid="default2">$model.cartGoodsData.sum(&quot;fMoney&quot;,function(ev){
return ev.row.val(&quot;fShopID&quot;) ==  $row.val(&quot;id&quot;)
})</expr></calculate> </col> 
   <col name="fSumNum" xid="ruleCol3">
    <calculate xid="calculate3">
     <expr xid="default3">$model.cartGoodsData.sum(&quot;fNumber&quot;,function(ev){
return  ev.row.val(&quot;fCheck&quot;) == 1 &amp;&amp; ev.row.val(&quot;fShopID&quot;) == $row.val(&quot;id&quot;)
})</expr></calculate> </col> </rule></div>
  <div component="$UI/system/components/justep/data/data" autoLoad="true" xid="cartGoodsData" idColumn="id" onCustomRefresh="cartGoodsDataCustomRefresh"><column label="ID" name="id" type="String" xid="xid3"></column>
  <column label="商铺ID" name="fShopID" type="String" xid="xid4"></column>
  <column label="商品ID" name="fGoodsID" type="String" xid="xid5"></column>
  <column label="标题" name="fTitle" type="String" xid="xid6"></column>
  <column label="图片" name="fImg" type="String" xid="xid7"></column>
  <column label="现价" name="fPrice" type="Decimal" xid="xid8"></column>
  <column label="原价" name="fOldPrice" type="Decimal" xid="xid9"></column>
  <column label="型号" name="fSize" type="String" xid="xid10"></column>
  <column label="数量" name="fNumber" type="Decimal" xid="xid11"></column>
  <column label="是否选中" name="fCheck" type="String" xid="xid15"></column>
  <column label="金额" name="fMoney" type="Decimal" xid="xid16"></column>
  <rule xid="rule1">
   <col name="fMoney" xid="ruleCol1">
    <calculate xid="calculate1">
     <expr xid="default1">$row.val(&quot;fCheck&quot;) ==1?$row.val(&quot;fPrice&quot;) * $row.val(&quot;fNumber&quot;):0</expr></calculate> </col> </rule></div></div>  
  <div component="$UI/system/components/justep/panel/panel" 
    class="x-panel x-full" xid="panel1"> 
      <div class="x-panel-top" xid="top1"> 
        <div component="$UI/system/components/justep/titleBar/titleBar" title="我的购物车"
          class="x-titlebar">
          <div class="x-titlebar-left"> 
            <a component="$UI/system/components/justep/button/button"
              label="" class="btn btn-link btn-only-icon" icon="icon-chevron-left"
              onClick="{operation:'window.close'}" xid="backBtn"> 
              <i class="icon-chevron-left"/>  
              <span></span> 
            </a> 
          </div>  
          <div class="x-titlebar-title">我的购物车</div>  
          <div class="x-titlebar-right reverse"> 
          </div>
        </div> 
      </div>  
    <div class="x-panel-content" xid="content1"><div component="$UI/system/components/justep/list/list" class="x-list" xid="list1" data="cartShopData">
   <ul class="x-list-template" xid="listTemplateUl1">
    <li xid="li1" style="border-color:#C0C0C0 #C0C0C0 #C0C0C0 #C0C0C0;border-bottom-style:solid;border-bottom-width:thin;"><div component="$UI/system/components/justep/row/row" class="x-row" xid="row1">
   <div class="x-col x-col-fixed x-col-center" xid="col1" style="width:auto;"><span component="$UI/system/components/justep/button/checkbox" class="x-checkbox" xid="checkbox1" checkedValue="1" onChange="checkbox1Change" bind-ref='ref("fCheck")'></span></div>
   <div class="x-col" xid="col2"><span xid="span1" bind-text='val("fShopName")'></span></div>
   <div class="x-col" xid="col3"></div></div>
  <div component="$UI/system/components/justep/list/list" class="x-list" xid="list2" data="$model.cartGoodsData" filter=' val("id")  == $row.val("fShopID")'>
   <ul class="x-list-template" xid="listTemplateUl2">
    <li xid="li2"><div component="$UI/system/components/justep/row/row" class="x-row" xid="row2">
   <div class="x-col x-col-fixed x-col-center" xid="col4" style="width:auto;"><span component="$UI/system/components/justep/button/checkbox" class="x-checkbox" xid="checkbox2" checkedValue="1" bind-ref='ref("fCheck")' onChange="checkbox2Change"></span></div>
   <div class="x-col x-col-fixed x-col-center" xid="col5" style="width:auto;"><img src="" alt="" xid="image1" bind-attr-src='val("fImg")' style="width:60px;"></img></div>
   <div class="x-col" xid="col6"><div component="$UI/system/components/justep/row/row" class="x-row" xid="row3">
   <div class="x-col" xid="col7" bind-text='val("fTitle")'></div>
   </div>
  <div component="$UI/system/components/justep/row/row" class="x-row" xid="row4">
   <div class="x-col x-col-center" xid="col10" bind-text='"商品类型：" +  val("fSize")'></div>
   </div>
  <div component="$UI/system/components/justep/row/row" class="x-row" xid="row6">
   <div class="x-col x-col-center center-block" xid="col16">
  
  
  
  
  <span xid="span8" bind-text='"￥" + val("fOldPrice")' bind-visible='val("fPrice")  &lt; val("fOldPrice")' style="text-decoration:line-through ;"></span>
  <span xid="span5" bind-text='"￥" + val("fPrice")'></span>
  </div>
   <div class="x-col x-col-fixed x-col-center" xid="col17" style="width:auto;"><a component="$UI/system/components/justep/button/button" class="btn x-gray btn-xs btn-only-icon center-block" label="button" xid="button1" icon="linear linear-volumemedium" onClick="button1Click">
   <i xid="i1" class="linear linear-volumemedium"></i>
   <span xid="span2"></span></a></div>
   <div class="x-col x-col-fixed x-col-center center-block" xid="col18" style="width:40px;">
   <input component="$UI/system/components/justep/input/input" class="form-control input-sm center-block" xid="input1" bind-ref='ref("fNumber")' style="height:auto;"></input></div>
  <div class="x-col x-col-fixed x-col-center center-block" xid="col19" style="width:auto;">
   <a component="$UI/system/components/justep/button/button" class="btn x-gray btn-xs btn-only-icon center-block" label="button" xid="button2" icon="linear linear-bus" onClick="button2Click">
    <i xid="i2" class="linear linear-bus"></i>
    <span xid="span3"></span></a> </div></div></div></div></li></ul> </div><div component="$UI/system/components/justep/row/row" class="x-row" xid="row5">
   <div class="x-col x-col-center" xid="col13" style="text-align:right;"><span xid="span7"><![CDATA[总价（不含运费）：]]></span></div>
   <div class="x-col x-col-fixed x-col-center" xid="col14" style="width:auto;"><span xid="span9" bind-text='"￥" + val("fSumMoney")'></span></div><div class="x-col x-col-fixed x-col-center" xid="col15" style="width:auto;"><a component="$UI/system/components/justep/button/button" class="btn btn-default" label="去结算" xid="button3">
   <i xid="i3"></i>
   <span xid="span6" bind-text='"去结算(" + val("fSumNum") + ")"'><![CDATA[]]></span></a></div></div></li></ul> </div>
  </div>
  </div> 
</div>